package service;

import bean.Car;
import dao.CarDao;
import dao.impl.CarDaoImpl;
import utils.PageUtil;

import java.util.List;

public class CarService {
    CarDao cd = new CarDaoImpl();
    public List<Car> findByPage(PageUtil pu){
        return cd.findByPage(pu);
    }
    public int getTotalCount(){
        return cd.getTotalCount();
    }
    public int addCar(Car car){
        return cd.addCar(car);
    }
}
